import request from "@/utils/request";

export function listSysFile(data) {
    return request({
        url: '/system/sys_file/list',
        method: 'get',
        params: data
    })
}

export function deleteSysFile(fileId) {
    return request({
        url: '/system/sys_file/delete/' + fileId,
        method: 'delete'
    })
}

export function getSysFile(fileId) {
    return request({
        url: '/system/sys_file/' + fileId,
        method: 'get'
    })
}

export function renameFile(data) {
    return request({
        url: '/system/sys_file/rename',
        method: 'put',
        data: data
    })
}

export function moveFile(fileId,data) {
    return request({
        url: '/system/sys_file/move/'+fileId,
        method: 'put',
        data: data
    })
}
